package edu.ua.bmr.android;

public class BMRException extends Exception {
	private static final long serialVersionUID = 1169362708973745981L;
	public static String CLASSNAME = "BMRException";
	private String mMessage;
	private int mResourceId;
	
	public BMRException(int resource, String message) {
		mMessage = message;
		mResourceId = resource;
	}
	
	public int getResourceId() {
		return mResourceId;
	}
	
	public String getMessage() {
		return mMessage;
	}
	
	public String toString() {
		return BMRException.CLASSNAME + ": " + mMessage;
	}

}
